#include <stdio.h>
int main()
{
    for(char c;(c=getchar())!='\n';putchar((c>='A'&&c<='Z')?('Z'-c+'A'):c));
 	return 0;
}
